package com.mzw.mzwclientsdk;

import com.mzw.mzwclientsdk.client.MzwClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


/**
 * @author L1nAn
 */
@Configuration
@ConfigurationProperties("mzwapi.client")
@Data
@ComponentScan
public class mzwApiClientConfig {


    private String accessKey;
    private String secretKey;

    @Bean
    public MzwClient mzwClient() {
        return new MzwClient(accessKey, secretKey);
    }
}
